#include <iostream>
#include <stdlib.h>
#include <algorithm>
#include <cstring>
#include <cmath>
#include <stdlib.h>
#include <iomanip>
inline bool is_vowel(char c)
{
    return (c=='a'||c=='e'||c=='i'||c=='o'||c=='u');
}
inline bool has_vowel(const char* str, int len)
{
    for(int i = 0; i < len; i++)
    {
        if(is_vowel(str[i]))
            return true;
    }
    return false;
}
inline bool has_3_consecutive_or_2same(const char *str, int len)
{
    for(int i = 0; i < len-2; i++)
    {
        int flag = is_vowel(str[i])+is_vowel(str[i+1])+is_vowel(str[i+2]);
        if(flag==3||flag==0)
            return true;
        if(str[i]==str[i+1]){
            if(str[i]!='e'&&str[i]!='o')
                return true;
        }

    }
    if(len>=2){
        if(str[len-2]==str[len-1])
        {
            if(str[len-2]!='e'&&str[len-2]!='o')
                return true;
        }
    }
    return false;
}
int main()
{
    int count=0;
    while (1) {
        char str[21]={0};
        std::cin>>str;
        if(strcmp(str,"end")==0)
            break;
        if(count!=0){std::cout<<std::endl;count=1;}
        int len = strlen(str);
        bool accept = true;
        if(!has_vowel(str, len))
            accept=false;
        if(has_3_consecutive_or_2same(str, len))
            accept=false;

        if(accept)
            std::cout<<"<"<<str<<"> "<<"is acceptable.\n";
        else
            std::cout<<"<"<<str<<"> "<<"is not acceptable.\n";
    }
    return 0;
}
